<div class="if-lg">
	<ul class="nav-u">
	<li class="eff"><a class="p-if"><span class="p-vh"><span><?php echo Yii::t("admin_backend","System");?></span></span></a>
		<div class="pbm" style="display: none" >
			<ol>
				<li><a href="<?php echo Yii::app()->createUrl("/admin_backend/setting/index");?>"><span class="sys1"><?php echo Yii::t("admin_backend","Setting");?></span></a></li>
				<li><a href="<?php echo Yii::app()->createUrl("/user/index");?>"><span class="u1"><?php echo Yii::t("admin_backend","Users Manage");?></span></a></li>
				<li><a href="<?php echo Yii::app()->createUrl("/srbac/authitem/manage");?>"><span class="u2"><?php echo Yii::t("admin_backend","Users Permission");?></span></a></li>
			</ol>
		</div>	
	</li>
	<li class="eff"><a class="p-if"><span class="p-vh"><span><?php echo Yii::t("admin_backend","Application");?></span></span></a>
		<div class="pbm" style="display: none" >
			<ol>
				<li><a href="<?php echo Yii::app()->createUrl("/admin_dashboard");?>"><span class="item1"><?php echo Yii::t("admin_backend","Dashboard");?></span></a></li>
				<li><a href="<?php echo Yii::app()->createUrl("/admin_media/manage");?>"><span class="item2"><?php echo Yii::t("admin_backend","Media");?></span></a></li>
				<li><a href="<?php echo Yii::app()->createUrl("/admin_news/news/admin");?>"><span class="item3"><?php echo Yii::t("admin_backend","News");?></span></a></li>
				<li><a href="<?php echo Yii::app()->createUrl("/admin_news/pages/admin");?>"><span class="item4"><?php echo Yii::t("admin_backend","Pages");?></span></a></li>
				<li><a href="<?php echo Yii::app()->createUrl("/admin_comments/comment/admin");?>"><span class="item5"><?php echo Yii::t("admin_backend","Comments");?></span></a></li>
				<li><a href="<?php echo Yii::app()->createUrl("/shop/shop/admin");?>"><span class="item6"><?php echo Yii::t("admin_backend","Shop");?></span></a></li>
				<li><a href="<?php echo Yii::app()->createUrl("/admin_poll/poll/admin");?>"><span class="item7"><?php echo Yii::t("admin_backend","Polls");?></span></a></li>
				<li><a href="<?php echo Yii::app()->createUrl("/admin_ads/ads/admin");?>"><span class="item8"><?php echo Yii::t("admin_backend","Ads");?></span></a></li>
				<li><a href="<?php echo Yii::app()->createUrl("/admin_gallery/galleryItems/admin");?>"><span class="item9"><?php echo Yii::t("admin_backend","Gallery Manager");?></span></a></li>
			</ol>
		</div>	
	</li>
	
	<li class="eff"><a class="p-if"><span class="p-vh"><span><?php echo Yii::t("admin_backend","Extensions");?></span></span></a>
		<div class="pbm" style="display: none" >
			<ol>
				<li class="w1"><a href="<?php echo Yii::app()->createUrl("/admin_widgets/widgets/admin");?>"><span><?php echo Yii::t("admin_backend","Widgets Manager");?></span></a></li>
			</ol>
		</div>	
	</li>
	
	<li class="eff"><a class="p-if"><span class="p-vh"><span><?php echo Yii::t("admin_backend","System Info");?></span></span></a>
		<div class="pbm" style="display: none" >
			<ol>
				<li class="sys3"><a href="<?php echo Yii::app()->createUrl("/admin_SystemInfo/main/index");?>"><span><?php echo Yii::t("admin_backend","Requirements");?></span></a></li>
				<li class="sys4"><a href="<?php echo Yii::app()->createUrl("/admin_SystemInfo/main/info");?>"><span><?php echo Yii::t("admin_backend","PHP Info");?></span></a></li>
				<li class="sys5"><a href="<?php echo Yii::app()->createUrl("/admin_SystemInfo/main/author");?>"><span><?php echo Yii::t("admin_backend","Author");?></span></a></li>
			</ol>
		</div>	
	</li>
	
</ul>
</div>
<div class="if-rg">
<ul class="nav-u">
	<li class="eff langnav"><a class="p-if"><span class="p-vh"><span class="langbox"><img src="<?php echo Yii::app()->theme->baseUrl;?>/images/icons/lang/<?php echo "$curr_language.png";?>" /><?php echo Yii::t("admin_backend",$Languages["$curr_language"]);?></span></span></a>
		<div class="pbm" style="display: none" >
		<?php 
		echo CHtml::form('', 'POST', array('name'=>'langbox'));
		?>
			<ol>
						<?php 
						foreach($Languages as $key => $value):
							if($key!=$curr_language):
						?>
							<li><a href="#" onclick="$('#lang').attr('value','<?php echo $key;?>');document.langbox.submit();">
								<span class="langbox"><img src="<?php echo Yii::app()->theme->baseUrl;?>/images/icons/lang/<?php echo "$key.png";?>" /><?php echo $value;?></span>
							</a></li>
						<?php 
						endif;
						endforeach;?>
			</ol>
			<input type="hidden" name="lang" id="lang" value="" />
			<?php 
					echo CHtml::endForm();
			?>
		</div>
	</li>
	<li>
		<a class="p-if" target="_blank" href="<?php echo Yii::app()->params["site_url"];?>"><span class="p-vh"><span><?php echo Yii::t("admin_backend","Visit Site");?></span></span></a>
	</li>
	<li class="eff"><a class="p-if"><span class="p-vh"><?php echo Yii::app()->user->name;?><span class="ico-s">&nbsp;</span></span></a>
		<div class="pbm" style="display: none" >
			<ol>
						<li class="uitem1"><a href="<?php echo Yii::app()->createUrl("/user/profile");?>"><span><?php echo Yii::t("admin_backend","Profile"); ?></span></a></li>
						<li class="uitem2"><a href="<?php echo Yii::app()->createUrl('/user/profile/edit')?>"><span><?php echo Yii::t("user",'Edit profile');?></span></a></li>
						<li class="uitem3"><a href="<?php echo Yii::app()->createUrl('/user/profile/changepassword')?>"><span><?php echo Yii::t("user", "Change password");?></span></a></li>
			</ol>
		</div>	
	</li>
	<li><a class="p-if logout" href="<?php echo Yii::app()->createUrl("user/logout");?>"><span class="p-vh"><?php echo Yii::t("admin_backend","Logout"); ?></span></a></li>
</ul>
</div>
<script type="text/javascript">
$(document).ready(function(){
			$(".nav-u > li.eff > a").click(function() {
				$("div#ovf").addClass("showfade");
				var a = $(this);
				$("div#ovf").click(function(){
				a.removeClass("ph-s");
				$(".pbm").hide();
				$("div#ovf").removeClass("showfade");
			})
			if($(this).hasClass("ph-s")){
				$("div#ovf").removeClass("showfade");
			}
			if($("div#ovf").hasClass("showfade")){
				$("a").removeClass("ph-s");
				$(".pbm").hide();
			}
			$(this).toggleClass("ph-s").find("+ div").fadeToggle("fast");
		});
	})
</script>